package com.hopu.aop.service;

import org.springframework.stereotype.Service;

@Service
public class UserService {

    public int addUser(String name,int age){
        System.out.println("添加用户" + name +",年龄" + age);
        return 999;
    }

    public void findAll(){
        System.out.println("查询所有用户");
        throw new RuntimeException("Error!!!");
    }
}
